home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_12_1986_Transactor_Publishing.d64
/
improve sys.pal
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
870b
|
42 lines
100 rem printer version
120 open4,4
130 print#4,chr$(27)"p"chr$(66)
140 close4
150 open4,4,2
160 sys700
170 .opt oo,p4
180 ;
190 ;ml print at
200 ;
210 ;
220 chrget = $73 ;get next character
230 errprt = $a437 ;print error type .x
240 print = $aaa0 ;basic print
250 comchk = $aefd ;check for comma
260 evalxr = $b79e ;put exp in .x 0-255
270 setcrs = $fff0 ;kernal-place cursor
280 *= $c000
290 ;
300 jsr comchk ;check for comma
310 jsr evalxr ;evaluate col in .x
320 cpx col
330 bcs error ;branch if col >= 40
340 txa
350 pha ;store col on stack
360 jsr comchk ;check for comma
370 jsr evalxr ;evaluate row in.x
380 cpx row
390 bcs error ;branch if row >= 25
400 pla ;get col from stack
410 tay
420 clc
430 jsr setcrs ;set cursor at x,y
440 jsr chrget ;first char for print
450 jmp print
460 rts
470 error ldx toobig ;parameter too big
480 jmp errprt ;print error .x
490 col .byte 40 ;# of columns
500 row .byte 25 ;#of rows
510 toobig .byte 14 ;illegal quantity